-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table of Contents component #180
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The size of this component is pretty daunting. Can we break ToC apart into two components: one for the "List" and the other for the "ListItems"?
@domyen sure thing. I think it was one of those things I thought belonged together at the beginning because you'll never use them individually, but agreed that it got too big. I ended up separating more in this way:
There is 1 caveat to that which is 1 of the list items is a recursive component render of the list iteself, so it is not broken out further (it lives in |
lgtm, thanks @kylesuss |
🚀 PR was released in v5.1.6 🚀 |
A highly dynamic table of contents component to be used in the consumers. The challenges w/ this component were mostly related to state management given the following constraints: